#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include "analysis.h"
#include "helpdialog.h"

#include <QList>
namespace Ui
{
    class MainWindowClass;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindowClass *ui;
    QList<Analysis*> m_analysisList;
    HelpDialog* m_helpDialog;

public slots:
    void showAboutDialog();
    void showHelpDialog();
    void quitApplication();

    void newAnalysis();
    void openAnalysis();
    void saveAnalysis();
    void saveAnalysisAs();

private slots:
    /**Add new logfile to the current analysis*/
    void addNewLogFile();

    /**Toggle the menu. Set state to active*/
    void activateAnalysisMenu(bool active);
    void activateAddNewLogMenu(bool active);
};

#endif // MAINWINDOW_H
